|
|
@@ -9,11 +9,11 @@ module ApplicationHelper
|
9
|
9
|
|
10
|
10
|
def working(agent)
|
11
|
11
|
if agent.disabled?
|
12
|
|
- '<span class="label label-warning">Disabled</span>'.html_safe
|
|
12
|
+ link_to '<span class="label label-warning">Disabled</span>'.html_safe, agent_path(agent)
|
13
|
13
|
elsif agent.working?
|
14
|
14
|
'<span class="label label-success">Yes</span>'.html_safe
|
15
|
15
|
else
|
16
|
|
- link_to '<span class="label btn-danger">No</span>'.html_safe, agent_path(agent, :tab => (agent.recent_error_logs? ? 'logs' : 'details'))
|
|
16
|
+ link_to '<span class="label label-danger">No</span>'.html_safe, agent_path(agent, :tab => (agent.recent_error_logs? ? 'logs' : 'details'))
|
17
|
17
|
end
|
18
|
18
|
end
|
19
|
19
|
end
|